﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TeacherInfo.aspx.cs" Inherits="com.orange.examination.WebForm7" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="css/TeacherInfo.css" />
    <title>教师基本信息</title>
</head>
<body>
    <form id="form1" runat="server">
        <fieldset class="FieldSet">
        <legend class="mailTitle">教师基本信息</legend>

        <div class="middle">

        <asp:GridView ID="gvTeacher" runat="server" width="500px" AutoGenerateColumns="False" CellPadding="3" OnRowDeleting="gvTeacher_RowDeleting" AllowPaging="True" OnPageIndexChanging="gvTeacher_PageIndexChanging" PageSize="10">
            <Columns>
                <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="TeacherXXinfo.aspx?Tid={0}" DataTextField="TeacherNum" HeaderText="教师编号" />
                <asp:BoundField DataField="TeacherName" HeaderText="教师姓名" />
                <asp:BoundField DataField="TeacherPwd" HeaderText="教师密码" />
                <asp:BoundField DataField="TeacherCourse" HeaderText="所教科目" />
                <asp:TemplateField HeaderText="删除" ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" Text="删除" OnClientClick="return confirm('确认要删除吗？');"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <RowStyle ForeColor="#000066" Height="15px" HorizontalAlign="Center" VerticalAlign="Middle" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Center" />
            <HeaderStyle BackColor="Transparent" Font-Bold="False" ForeColor="Black" Height="15px" />
            <FooterStyle BackColor="White" ForeColor="#000066" />
        </asp:GridView>

            </div>

        </fieldset>
    </form>
</body>
</html>
